/**
 * 
 */
package com.hexacta.hrs.web.util;

import org.displaytag.decorator.TableDecorator;

import com.hexacta.hrs.util.ReportTuple;

/**
 * clase para decorar la tabla de timeoff.
 * @author mfunes
 *
 */
public class TimeOffReportDecorator extends TableDecorator{

    public TimeOffReportDecorator() {
        super();
    }
    
    public String getTimeOffLink(){
        ReportTuple tupla= (ReportTuple) getCurrentRowObject();
        if(tupla.getThird().isEmpty()){
            return "";
        }
        return  "<a href=\""+tupla.getThird()+".action\">OK</a>";
    }
}
